<!--#layout("/common/layout.html",{"jsBase":"/js/base/baseMessage/"}){ -->
<div class="layui-row">
    <form id="searchForm" class="layui-form layui-form-pane">
        <div class="layui-collapse" lay-filter="condictionCol">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">查询条件</h2>
                <div class="layui-colla-content layui-show">
                    <div class="layui-row">
                        <div class="layui-form-item">
                            <div class="layui-inline">


                                <label class="layui-form-label">消息标题</label>

                                <div class="layui-input-inline">
                                    <input type="text" name="title" autocomplete="off" class="layui-input">
                                </div>


                                <label class="layui-form-label">归属模块</label>
                                <div class="layui-input-inline" id="modulecMember"></div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-form-item">

                                <label class="layui-form-label">省份</label>
                                <div class="layui-input-inline">
                                    <layui:simpleDataSelect name="provinceId" value="" data="${provinceList}"
                                                            attrId="provId" attrName="provName" layFilter="colFilter" id="provinceId"  laySearch="true"/>
                                </div>

                                <label class="layui-form-label">是否置顶</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="sort" id="sort"  promtion="请选择">
                                        <option value="">请选择</option>
                                        <option value="1">是</option>
                                        <option value="0">否</option>
                                    </select>
                                </div>
                                <button class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                            </div>
                        </div>
                    </div>
                    <!--
                     <div class="layui-inline" style="width:100%">
                                <label class="layui-form-label">生成订单时间</label>
                                <div class="layui-input-inline">
                                    <div class="date-range-pick">
                                        <input type="text" name="orderTime" autocomplete="off" class="layui-input">
                                    </div>
                                </div>

                                    <button style="float: right;" class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>

                            </div>
                    <div class="layui-row">
                        <div class="layui-form-item " style="float: right;">
                            <button class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                        </div>
                    </div>
                    -->
                </div>
            </div>
        </div>
    </form>
</div>

<div class="layui-btn-group">
    <layui:accessButton function="base.baseMessage.add" action="add">增加</layui:accessButton>
    <layui:accessButton function="base.baseMessage.edit" action="edit">编辑</layui:accessButton>
    <layui:accessButton function="base.baseMessage.del" action="del">删除</layui:accessButton>
    <layui:accessButton function="base.baseMessage.up" action="up">置顶</layui:accessButton>
    <layui:accessButton function="base.baseMessage.down" action="down">取消置顶</layui:accessButton>
</div>

<table id="baseMessageTable" lay-filter="baseMessageTable"></table>
<!--#} -->
<script>
    layui.extend({
        selectN: '../../../plugins/layui_extends/selectN',
    }).use(['index','selectN'], function () {
        var index = layui.index,
            selectN = layui.selectN;
        var tagData = ${moduleJson};
        index.init();
        var tagIns2 = selectN({
            //元素容器【必填】
            elem: '#modulecMember'
            //候选数据【必填】
            ,data: tagData
            //默认值
            ,selected: []
            //input的name 不设置与选择器相同(去#.)
            ,name: 'module'
            //候选项数据的键名
            ,field: {idName:'dictId',titleName:'dictValue'}
        });
    });

</script>
